package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

//模块表
@TableName(value = "modules")
public class Modules {
    @TableId(value = "modulesId",type = IdType.AUTO)
    private Integer modulesId;//模块编号

    private String modulesName;//模块名称

    private Integer modulesParentId;//父模块编号

    private String modulesPath;//模块路径

    private Integer modulesWeight;//权重值

    private String modulesIcon;//模块图标
    @TableField(exist = false)//标志这个字段非数据库字段
    private List<Modules> children;//子类

    private Integer exit1;//备用字段1

    private String exit2;//备用字段2

    public Integer getExit1() {
        return exit1;
    }

    public void setExit1(Integer exit1) {
        this.exit1 = exit1;
    }

    public String getExit2() {
        return exit2;
    }

    public void setExit2(String exit2) {
        this.exit2 = exit2;
    }

    public List<Modules> getChildren() {
        return children;
    }

    public void setChildren(List<Modules> children) {
        this.children = children;
    }

    public Modules(Integer modulesId, String modulesName, Integer modulesParentId, String modulesPath, Integer modulesWeight, String modulesIcon) {
        this.modulesId = modulesId;
        this.modulesName = modulesName;
        this.modulesParentId = modulesParentId;
        this.modulesPath = modulesPath;
        this.modulesWeight = modulesWeight;
        this.modulesIcon = modulesIcon;
    }

    @Override
    public String toString() {
        return "Modules{" +
                "modulesId=" + modulesId +
                ", modulesName='" + modulesName + '\'' +
                ", modulesParentId=" + modulesParentId +
                ", modulesPath='" + modulesPath + '\'' +
                ", modulesWeight=" + modulesWeight +
                ", modulesIcon='" + modulesIcon + '\'' +
                ", children=" + children +
                ", exit1=" + exit1 +
                ", exit2='" + exit2 + '\'' +
                '}';
    }

    public Modules() {
        super();
    }

    public Integer getModulesId() {
        return modulesId;
    }

    public void setModulesId(Integer modulesId) {
        this.modulesId = modulesId;
    }

    public String getModulesName() {
        return modulesName;
    }

    public void setModulesName(String modulesName) {
        this.modulesName = modulesName;
    }

    public Integer getModulesParentId() {
        return modulesParentId;
    }

    public void setModulesParentId(Integer modulesParentId) {
        this.modulesParentId = modulesParentId;
    }

    public String getModulesPath() {
        return modulesPath;
    }

    public void setModulesPath(String modulesPath) {
        this.modulesPath = modulesPath;
    }

    public Integer getModulesWeight() {
        return modulesWeight;
    }

    public void setModulesWeight(Integer modulesWeight) {
        this.modulesWeight = modulesWeight;
    }

    public String getModulesIcon() {
        return modulesIcon;
    }

    public void setModulesIcon(String modulesIcon) {
        this.modulesIcon = modulesIcon;
    }
}
